<template>
  <div>
      {{$route.path}}
      <br>
      {{count}}
      <br>
      <router-link to="/" @click="count += 1">home</router-link>
      <router-link to="/menu1" @click="count += 1">menu1</router-link>
      <router-link to="/menu2" @click="count += 1">menu2</router-link>
  </div>
</template>


<script>
export default {
    data(){
        return {
            count:0
        }
    }
}
</script>

<style>

</style>
